<#include "/freemarker/frame.ftl"> 
 <@frame title="interpret的使用"> 
 
 
 使用interpret 将拼装的字符串解析为模版
<#assign expression=""/>
<#assign attr={"name":"textName","id":"textId","other":"otherAttr"}/>
<#assign expression="<@component.textfield "/>
<#list attr?keys as key>
<#assign value=attr[key]/>
<#lt><#assign expression=expression+key+"=\""+value+"\" "/><#rt>
</#list>
<#assign expression=expression+"/>"/>
<#assign expression=expression?interpret/>
<@expression/>


 </@frame> 